package net.j4love.json.jackson.xml;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;

/**
 * @author he peng
 * @create 2018/1/8 15:42
 * @see
 */
public class PayPlatPayItem {

    @JacksonXmlProperty(localName = "HNAPAY_SEQ_NO")
    private Long hnapaySeqNo;

    @JacksonXmlProperty(localName = "STATUS")
    private Integer status;

    @JacksonXmlProperty(localName = "AMOUNT")
    private Integer amount;

    @JacksonXmlProperty(localName = "ERROR_CODE")
    private String errorCode;

    @JacksonXmlProperty(localName = "ERROR_MSG")
    private String errorMsg;

    @JacksonXmlProperty(localName = "ORDER_ID")
    private String orderId;

    @JacksonXmlProperty(localName = "SUCCESS_TIME")
    private Long successTime;

    public Long getHnapaySeqNo() {
        return hnapaySeqNo;
    }

    public PayPlatPayItem setHnapaySeqNo(Long hnapaySeqNo) {
        this.hnapaySeqNo = hnapaySeqNo;
        return this;
    }

    public Integer getStatus() {
        return status;
    }

    public PayPlatPayItem setStatus(Integer status) {
        this.status = status;
        return this;
    }

    public Integer getAmount() {
        return amount;
    }

    public PayPlatPayItem setAmount(Integer amount) {
        this.amount = amount;
        return this;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public PayPlatPayItem setErrorCode(String errorCode) {
        this.errorCode = errorCode;
        return this;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public PayPlatPayItem setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
        return this;
    }

    public String getOrderId() {
        return orderId;
    }

    public PayPlatPayItem setOrderId(String orderId) {
        this.orderId = orderId;
        return this;
    }

    public Long getSuccessTime() {
        return successTime;
    }

    public PayPlatPayItem setSuccessTime(Long successTime) {
        this.successTime = successTime;
        return this;
    }

    @Override
    public String toString() {
        return "PayPlatPayItem{" +
                "hnapaySeqNo=" + hnapaySeqNo +
                ", status=" + status +
                ", amount=" + amount +
                ", errorCode='" + errorCode + '\'' +
                ", errorMsg='" + errorMsg + '\'' +
                ", orderId='" + orderId + '\'' +
                ", successTime=" + successTime +
                '}';
    }
}
